package com.peng.leetcode.trie;

/**
 * Main
 *
 * @author: lupeng6
 * @create: 2021/1/26 14:38
 */
public class Main {

    public static void main(String[] args) {
        Trie trie = new Trie();

        trie.insert("apple");
        System.out.println(trie.search("apple"));
        System.out.println(trie.search("app"));
        System.out.println(trie.startsWith("app"));
        trie.insert("app");
        System.out.println(trie.search("app"));
    }


}
